const app = getApp()

Page({
  onLoad: function(options) {
    const self = this;
    app.globalData.sans.forEach(function(san, index, array) {
      if (san.id == options.id) {
        san.src = san.cover.replace('/preview','');
        self.setData({
          san: san
        });
        return;
      }
    });

  },
})